package com.dt.app.modules.product.vo;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;

import com.dt.app.modules.base.entites.PageEntity;
/**
 * <p>
 * 
 * </p>
 *
 * @author 鸿源塔基
 * @since 2024-03-07
 */
@Data
@NoArgsConstructor
@ApiModel(value="Product对象", description="")
public class ProductBean extends PageEntity implements Serializable {

    private static final long serialVersionUID=1878777656509L;

    @ApiModelProperty(value = "产品项目")
    private Integer productId;

    @ApiModelProperty(value = "分类")
    private Integer categoryId;
    @ApiModelProperty(value = "分类名称")
    private String cname;

    @ApiModelProperty(value = "分类全路径名称")
    private String categoryPathname;

    @ApiModelProperty(value = "企业")
    private Integer companyId;

    @ApiModelProperty(value = "名称")
    private String pname;

    @ApiModelProperty(value = "编码")
    private String pno;

    @ApiModelProperty(value = "拼音")
    private String pinyin;

    @ApiModelProperty(value = "排序 降序")
    private Integer seq;

    @ApiModelProperty(value = "1激活 0失效")
    private Integer state;

    @ApiModelProperty(value = "单价单位")
    private String priceDw;

    @ApiModelProperty(value = "单价")
    private BigDecimal price;

    @ApiModelProperty(value = "包安装单价")
    private BigDecimal priceAz;

    @ApiModelProperty(value = "成本")
    private BigDecimal priceCb;

    @ApiModelProperty(value = "包安装成本")
    private BigDecimal priceCbaz;

    @ApiModelProperty(value = "价格备注")
    private String priceDesc;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "最后更新时间")
    private LocalDateTime utime;

    @ApiModelProperty(value = "备注")
    private String msg;

    @ApiModelProperty(value = "产品媒体库")
    private List<ProductMediaBean> productMedias=null;

    @ApiModelProperty(value = "产品规格")
    private List<ProductGgBean> productGgs=null;

    @ApiModelProperty(value = "产品价格")
    private List<ProductPriceBean> productPrices=null;
}
